import Vue from 'vue'
import VCharts from 'v-charts'
import echarts from 'echarts'
import App from './App.vue'
import router from './router'
import store from './store'
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import XLSX from 'xlsx'
import Print from 'vue-print-nb'
// qs插件的引入
import qs from 'qs'
// 引入全局的样式
// import '../src/style/global.css'
import './style/index.less'
import './filters/index'
import 'vxe-table/lib/index.css'
import './assets/css/element-#017AFF/index.css'
// import "./request/store_baseInfo_request/vip_build"; // 测试上一个离职的axios接口，封装能用
// import "../text/text.js"; // 测试用的
// import Viewer from 'v-viewer'
// import 'viewerjs/dist/viewer.css'
// import FileSaver from "file-saver"
// import VXETablePluginShortcutKey from 'vxe-table-plugin-shortcut-key'
// 引入全局的moent.js文件,并且挂载到moment上
import moment from 'moment'
import BigNumber from 'bignumber.js' // js 计算精度的问题
import VueClipboards from 'vue-clipboard2'
import 'xe-utils'
import VXETable from 'vxe-table'
import md5 from 'js-md5'
Vue.prototype.$moment = moment
Vue.prototype.$md5 = md5
Vue.prototype.$echarts = echarts
Vue.prototype.$bigNumber = BigNumber
Vue.prototype.$qs = qs //即可直接使用  this.$qs

Vue.use(VueClipboards)
Vue.use(Print)
Vue.use(VCharts)
Vue.use(Element)
Vue.use(VXETable)
Vue.use(XLSX)
// VXETable.use(VXETablePluginShortcutKey, {
//   setting: {
//     'table.edit.leftTabMove': 'Shift + Enter',
//     'table.edit.rightTabMove': 'Enter', // 将 Tab 键的按键值修改为回车键
//  }
// })
// Vue.use(Viewer)

// Viewer.setDefaults({
//   Options: { "inline": true, "button": true, "navbar": true, "title": true, "toolbar": true, "tooltip": true, "movable": true, "zoomable": true, "rotatable": true, "scalable": true, "transition": true, "fullscreen": true, "keyboard": true, "url": "data-source" }
// })

Vue.config.productionTip = false

new Vue({
  router,
  data: {
    Bus: new Vue()
  },
  store,
  render: (h) => h(App)
}).$mount('#app')
